package cn.exrick.xboot.modules.transport.entity;

import cn.exrick.xboot.base.XbootBaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author gj
 */
@Data
@Accessors(chain = true)
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name = "b_user_address_book")
@TableName("b_user_address_book")
@ApiModel(value = "用户地址簿表")
public class UserAddressBook extends XbootBaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "关联的用户ID")
    private Long userId;

    @ApiModelProperty(value = "地址所在地区")
    private Long regionId;

    @ApiModelProperty(value = "地址所在地区")
    private String regionName;

    @ApiModelProperty(value = "详细地址信息")
    private String detailedAddress;

    @ApiModelProperty(value = "地址的坐标信息")
    private String coordinates;

}